
/*펜션뷰*/
	function View(pno) {
		var height= screen.height-50;
	    window.open('PensionView.go?pno='+pno,'PensionJoa','width=850,height='+height+',left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');
	}
	
/*지역선택*/
	function Area(a){
		window.location.href = "Area.go?area="+a;
	}
	
/*예약페이지*/
	function Reservation(pno) {
		var height= screen.height-50;
	    window.open('reservationStep1.go?pno='+pno,'PensionJoa','width=850,height='+height+',left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');
	}

/*input 스타일*/
	function on(obj){
	  obj.className="on";
	  
	 }
	 function off(obj){
	  obj.className="off";
	 }
	
/*객실 등록*/
		function validation(){
		var frm = document.form;
		
		if(frm.rname.value == ""){
			alert("객식 이름을 입력해주세요");
			return false;
		}
		else if(frm.extend.value == ""){
			alert("크기를 입력해주세요");
			return false;
		}
		else if(frm.people.value == ""){
			alert("기준인원을 입력해주세요");
			return false;
		}
		else if(frm.charge1.value == ""){
			alert("주중 요금을 입력해주세요");
			return false;
		}
		else if(frm.charge2.value == ""){
			alert("주말 요금을 입력해주세요");
			return false;
		}
		else if(frm.peak_charge.value == ""){
			alert("성수기 요금을 첨부해주세요");
			return false;
		}
		
		return true;
	}
		
	/*	다중등록
		var count = 0;
		function appendItem() {
			count++;
			var newItem = document.createElement("div");
			newItem.setAttribute("id", "item_" + count);
			var html = document.getElementById("add2").innerHTML;
			newItem.innerHTML = html;
			
			
			var itemListNode = document.getElementById('itemList');
			itemListNode.appendChild(newItem);
		}
		function removeItem(idCount) {
			var item = document.getElementById("item_"+idCount);
			if (item != null) {
				item.parentNode.removeChild(item);
			}
		}*/
		
		
		/*펜션등록*/
		function uploadAdd(i1,i2,i3,i4,j){
			
			i1.style.display = ''; 
			i2.style.display = ''; 
			i3.style.display = ''; 
			i4.style.display = ''; 
			j.style.display = 'none';	
		}

		function validation(){
			var frm = document.form;
			
			if(frm.pname.value == ""){
				alert("펜션 이름을 입력해주세요");
				return false;
			}
			else if(frm.addr.value == ""){
				alert("주소를 입력해주세요");
				return false;
			}
			else if(frm.phone.value == ""){
				alert("전화전호를 입력해주세요");
				return false;
			}
			else if(frm.guide.value == ""){
				alert("부대/기타안내를 입력해주세요");
				return false;
			}
			else if(frm.map.value == ""){
				alert("위치안내를 입력해주세요");
				return false;
			}
			else if(frm.map_image.value == ""){
				alert("지도이미지를 첨부해주세요");
				return false;
			}
			else if(frm.uplodes[0].value == ""){
				alert("메인이미지를 등록해주세요");
				return false;
			}
			
			return true;
		}
		
		
		function go(a){
			var url = ['List.go','index.go','Join.go','Login.go','memberModify.go','ResCheck.go','Area.go','Theme.go',
			           'Search.go','Guide.go','Community.go','Logout.go','ResList.go','NoticeList.go','EpilogueList.go',
			           'QnAList.go','MemberDelete.go','MemList.go'];

				window.location.href = url[a];
		}
